import { AttrType } from "./AttrType";

export class AttrData {

    static getAttrs() {
        return {
            [AttrType.atk]: 20,
            [AttrType.defense]: 10,
            [AttrType.hp]: 100,
            [AttrType.maxHp]: 100,
            [AttrType.mp]: 50,
            [AttrType.maxMp]: 100,
            [AttrType.cricialRate]: 0.2,
            [AttrType.deCricialRate]: 0.2,
            [AttrType.hitRate]: 0.9,
            [AttrType.dodgeRate]: 0.2,
            [AttrType.speed]: Math.random() * 100 >> 0,
        }
    }
}

export interface IAttrData {
    type: AttrType;
    value: number;
}